<?php
function is_installed($location){
	$sql="select * from application where location='".$location."'";
	$res=execute_sql($sql);
	if($res){
	    if(mysql_num_rows($res)!=0){
	    	return true;
	    }
	    else{
	    	return false;
	    }
	}
	else{
		return false;
	}
}
function destroy_app_var(){
	global $app_name,$app_slug_name,$app_description,$app_frontpage;
	if(isset($app_name))unset($app_name);
	if(isset($app_slug_name))unset($app_slug_name);
	if(isset($app_description))unset($app_description);
	if(isset($app_frontpage))unset($app_frontpage);
}
?>